﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMS.DAL;

namespace MMS.BLL
{
    public class UserService
    {
        /// <summary>
        /// 逻辑层用户登录
        /// </summary>
        /// <returns></returns>
        public bool goDB(string name,string pass)
        {
            string sql = "SELECT userName,userPassword from userInfo where userName = '" + name + "'and userPassword = '" + pass + "'";
            string sqladress = @"Data Source=.\SQLEXPRESS;Initial Catalog=MMS;Integrated Security=True";
            DBService dbs = new DBService();
            return dbs.intoDB(sql, sqladress);
        }
    }
}
